<?php
/**
 * Created by PhpStorm.
 * User: ewen
 * Date: 4/27/21
 * Time: 9:57 AM
 */

namespace app\common\model;


class CoreCurrency extends Common
{

    /**
     * 币种表
     */

    /**
     * 根据币种标识查询币种
     * @param $coinSymbol
     * @return bool
     */
    public static function getCoinInfoByCoinSymbol($coinSymbol)
    {
        !$coinSymbol && backError(lang('coin symbol can not be empty'));
        $info = self::checkExistByMap('core_currency', [
            'symbol' => $coinSymbol
        ]);
        !$info && backError(lang('coin does not exist'));
        return $info;
    }
}